﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 工单管理
/// </summary>
[Tenant("1300000000001")]
[SugarTable("tickets", "工单管理")]
public class tickets : EntityBaseDel
{
    /// <summary>
    /// 类型
    /// </summary>
    [SugarColumn(ColumnName = "ticketstype", ColumnDescription = "类型", Length = 32)]
    public virtual string? ticketstype { get; set; }
    
    /// <summary>
    /// 产品主数据
    /// </summary>
    [SugarColumn(ColumnName = "masterId", ColumnDescription = "产品主数据")]
    public virtual long? masterId { get; set; }
    
    /// <summary>
    /// 产线
    /// </summary>
    [SugarColumn(ColumnName = "productionId", ColumnDescription = "产线")]
    public virtual long? productionId { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [SugarColumn(ColumnName = "ticketsstates", ColumnDescription = "状态")]
    public virtual bool? ticketsstates { get; set; }
    
    /// <summary>
    /// 数量
    /// </summary>
    [SugarColumn(ColumnName = "quantity", ColumnDescription = "数量")]
    public virtual int? quantity { get; set; }
    
    /// <summary>
    /// 已完成数量
    /// </summary>
    [SugarColumn(ColumnName = "completedquantity", ColumnDescription = "已完成数量")]
    public virtual int? completedquantity { get; set; }
    
    /// <summary>
    /// 进度
    /// </summary>
    [SugarColumn(ColumnName = "progress", ColumnDescription = "进度", Length = 32)]
    public virtual string? progress { get; set; }
    
    /// <summary>
    /// 计划开始时间
    /// </summary>
    [SugarColumn(ColumnName = "planstarttime", ColumnDescription = "计划开始时间")]
    public virtual DateTime? planstarttime { get; set; }
    
    /// <summary>
    /// 计划结束时间
    /// </summary>
    [SugarColumn(ColumnName = "planEndtime", ColumnDescription = "计划结束时间")]
    public virtual DateTime? planEndtime { get; set; }
    
    /// <summary>
    /// 实际开始时间
    /// </summary>
    [SugarColumn(ColumnName = "actualstarttime", ColumnDescription = "实际开始时间")]
    public virtual DateTime? actualstarttime { get; set; }
    
    /// <summary>
    /// 实际结束时间
    /// </summary>
    [SugarColumn(ColumnName = "actualendtime", ColumnDescription = "实际结束时间")]
    public virtual DateTime? actualendtime { get; set; }
    
    /// <summary>
    /// 投入数量
    /// </summary>
    [SugarColumn(ColumnName = "inputquantity", ColumnDescription = "投入数量")]
    public virtual int? inputquantity { get; set; }
    
    /// <summary>
    /// 良品数量
    /// </summary>
    [SugarColumn(ColumnName = "goodproductquantity", ColumnDescription = "良品数量")]
    public virtual int? goodproductquantity { get; set; }
    
    /// <summary>
    /// 报废数量
    /// </summary>
    [SugarColumn(ColumnName = "scrapquantity", ColumnDescription = "报废数量")]
    public virtual int? scrapquantity { get; set; }
    
    /// <summary>
    /// 来源
    /// </summary>
    [SugarColumn(ColumnName = "source", ColumnDescription = "来源", Length = 32)]
    public virtual string? source { get; set; }
    
    /// <summary>
    /// 源工单号
    /// </summary>
    [SugarColumn(ColumnName = "sourceticketnumber", ColumnDescription = "源工单号", Length = 32)]
    public virtual string? sourceticketnumber { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "remark", ColumnDescription = "备注", Length = 32)]
    public virtual string? remark { get; set; }
    
    /// <summary>
    /// 是否允许跳工序
    /// </summary>
    [SugarColumn(ColumnName = "skipornot", ColumnDescription = "是否允许跳工序")]
    public virtual bool? skipornot { get; set; }
    
    /// <summary>
    /// 工序进度
    /// </summary>
    [SugarColumn(ColumnName = "processprogress", ColumnDescription = "工序进度")]
    public virtual long? processprogress { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "encode", ColumnDescription = "编码", Length = 100)]
    public virtual string encode { get; set; }
    
}
